<template>
	<view v-if="show" class="empty">
		<u-empty
			:mode="text"
			:icon="`/static/icons/icon_${text}.png`"
			width="80%" >
		</u-empty>
	</view>
</template>

<script>
	// data: 数据，list: 列表，message: 消息列表, order: 订单, page: 页面不存在, permission: 无权限
	export default {
		name:"empty",
		props: {
			text: {
				type: String,
				default: 'data'
			},
			show: Boolean
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
.empty {
	position: relative;
	top: 10vh;
}
</style>